<html>
<head>
    <title>Bugs - Firefox - Document Write</title>
    <script type="text/javascript">

window.onload = function()
{
	var oIFrame = document.createElement('iframe') ;
	oIFrame.frameBorder = 0 ;
	oIFrame.style.border = '#000000 1px solid' ;
	oIFrame.width = oIFrame.height = '100%' ;

	document.body.appendChild( oIFrame ) ;

	var oDoc = oIFrame.contentWindow.document ;

	oDoc.open() ;

	oDoc.write( '<html>' ) ;
	oDoc.write( '<head><title></title>' ) ;

	oDoc.write(
		'<style type="text/css">' +
		'B { color: #FF0000; }' +
		'b { background-color: #FFFF00; }' +
		'</style>' ) ;

	oDoc.write( '</head><body>' ) ;
	oDoc.write( 'This is a <b>Test Case</b>.' ) ;
	oDoc.write( '</body></html>' ) ;

	oDoc.close() ;
}

    </script>
</head>
<body>

</body>
</html>
